import {getService} from "../service/service.js"
export default {
    namespaced: true,//开启命名空间
    state: {
      listData:[],
	  updateService:{},
	  visible:false,
    },
    mutations: {
       setListData(state, listData) {
       	state.listData = listData;
       },
       setUpdateService(state, updateService) {
       	state.updateService = updateService;
       },
       setVisible(state, visible) {
       	state.visible = visible;
       },
    },
    actions: {
		async show({commit,state}) {
			const data = await getService()
			commit("setListData", data)
		}
    },
}
